package com.aurora.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aurora.common.core.annotation.Excel;
import com.aurora.common.core.web.domain.BaseEntity;

/**
 * 文章分类关联对象 blog_post_categories
 * 
 * @author aurora
 * @date 2024-06-04
 */
public class BlogPostCategories extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联ID */
    private Long id;

    /** 文章ID，关联到Posts表的post_id */
    @Excel(name = "文章ID，关联到Posts表的post_id")
    private Long postId;

    /** 分类ID，关联到Categories表的category_id */
    @Excel(name = "分类ID，关联到Categories表的category_id")
    private Long categoryId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postId", getPostId())
            .append("categoryId", getCategoryId())
            .toString();
    }
}
